<template>
	<view>
		<u-alert :title="set.title"  :type = "set.type" :effect="set.effect" @click="click()"
		:closable="set.closable==1?true:false" :description = "set.description"></u-alert>
	</view>
</template>

<script>
	export default {
		name:"diy-alert",
		data() {
			return {
				
			};
		},
		props:{
			 set:{
				type:Object,
			 	default(){
					return {
					       type:"primary",
							effect:"light",//dark(深色)，light(浅色)
							title:"",
							description:"",
							closable:1,
							url:""
					}
				}
			 }
		},methods:{
			click(){
				this.navto(this.set.url)
			}
		}
	}
</script>

<style>

</style>